// components/diy/share/share.js
const App = getApp();
Component({
  /* 组件的属性列表*/
  options: {
    addGlobalClass: true,
  },

  /* 组件的初始数据*/
  data: {
    falls: [{
      image: 'https://img.zcool.cn/community/017d9a5d06e95fa801205e4b66c720.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100/quality,q_100/format,webp',
      title: '显瘦中长款系带风衣',
      describe: '柔软顺滑、上身挺括显瘦，垂坠飘逸、不易皱好打理。',
      count: '888',
      delCount: '666'
    }, {
      image: 'https://img.zcool.cn/community/017d9a5d06e95fa801205e4b66c720.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100/quality,q_100/format,webp',
      title: '显瘦中长款系带风衣',
      describe: '柔软顺滑、上身挺括显瘦，垂坠飘逸、不易皱好打理。',
      count: '888',
      delCount: '666'
    }, {
      image: 'https://img.zcool.cn/community/017d9a5d06e95fa801205e4b66c720.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100/quality,q_100/format,webp',
      title: '显瘦中长款系带风衣',
      describe: '柔软顺滑、上身挺括显瘦，垂坠飘逸、不易皱好打理。',
      count: '888',
      delCount: '666'
    }]
  },
  created() {

  },
  /**组件的属性列表用于组件自定义设置*/
  properties: {
    itemIndex: String,
    itemStyle: Object,
    params: Object,
    dataList: Object
  },

  /**
   * 组件的方法列表
   */
  methods: {

  },
  pageLifetimes: {
    // 组件所在页面的生命周期声明对象，
    //目前仅支持页面的show和hide两个生命周期
    show: function () {

      wx.lin.renderWaterFlow(this.data.falls, false, () => {
        console.log('组件渲染成功')
      })
    },
    hide: function () {
      console.log('Component-1 pageLifetimes >> Hide');
    }
  }
})